package com.ha;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * ClassName: RubbishApplication
 * Package: com.ha
 * Description:
 *
 * @Author 那啥啥
 * @Create 2024/3/31  17:47
 * @Version 1.0
 */
@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@Slf4j
@EnableCaching//开起注解形式缓存
@EnableScheduling//开起定时任务调度
public class RubbishApplication {
    public static void main(String[] args) {

        SpringApplication.run(RubbishApplication.class,args);
        log.info("服务开启");
    }
}
